package com.sh.healthtv.net.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 作者 675:
 * @version 创建时间：2016-7-19 上午11:24:18 清晰度 对应接口 ———— 2.6获取节目视频播放地址
 */
public class Definition extends BaseBean implements Parcelable {

    private static final long serialVersionUID = 1L;

    /**
     * 视频ID
     */
    private String id;
    /**
     * 视频名称
     */
    private String name;
    /**
     * 视频码率编号
     */
    private String bitRateType;
    /**
     * 视频码率名称
     */
    private String bitRateName;
    /**
     * 视频时长(单位：秒)
     */
    private String duration;
    /**
     * 视频播放地址
     */
    private String playLink;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBitRateType() {
        return bitRateType;
    }

    public void setBitRateType(String bitRateType) {
        this.bitRateType = bitRateType;
    }

    public String getBitRateName() {
        return bitRateName;
    }

    public void setBitRateName(String bitRateName) {
        this.bitRateName = bitRateName;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getPlayLink() {
        return playLink;
    }

    public void setPlayLink(String playLink) {
        this.playLink = playLink;
    }

    @Override
    public String toString() {
        return "Definition [id=" + id + ", name=" + name + ", bitRateType="
                + bitRateType + ", bitRateName=" + bitRateName + ", duration="
                + duration + ", playLink=" + playLink + "]";
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.bitRateType);
        dest.writeString(this.bitRateName);
        dest.writeString(this.duration);
        dest.writeString(this.playLink);
    }

    public Definition() {
    }

    protected Definition(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.bitRateType = in.readString();
        this.bitRateName = in.readString();
        this.duration = in.readString();
        this.playLink = in.readString();
    }

    public static final Creator<Definition> CREATOR = new Creator<Definition>() {
        @Override
        public Definition createFromParcel(Parcel source) {
            return new Definition(source);
        }

        @Override
        public Definition[] newArray(int size) {
            return new Definition[size];
        }
    };
}
